package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物联网关信息对象 t_iot_gateway
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
public class TIotGateway extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 网关名称 */
    @Excel(name = "网关名称")
    private String gatewayName;

    /** 网关序列号 */
    @Excel(name = "网关序列号")
    private String gatewayNo;

    /** 网关账号 */
    @Excel(name = "网关账号")
    private String gatewayAccount;

    /** 网关密码 */
    @Excel(name = "网关密码")
    private String gatewayPwd;

    /** 网关IP */
    @Excel(name = "网关IP")
    private String gatewayIp;

    /** 网关端口 */
    @Excel(name = "网关端口")
    private String gatewayPort;

    /** 网关状态 0-离线 1-在线 */
    @Excel(name = "网关状态 0-离线 1-在线")
    private String gatewayStatus;

    /** 心跳包内容 */
    @Excel(name = "心跳包内容")
    private String heartBeat;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGatewayName(String gatewayName) 
    {
        this.gatewayName = gatewayName;
    }

    public String getGatewayName() 
    {
        return gatewayName;
    }
    public void setGatewayNo(String gatewayNo) 
    {
        this.gatewayNo = gatewayNo;
    }

    public String getGatewayNo() 
    {
        return gatewayNo;
    }
    public void setGatewayAccount(String gatewayAccount) 
    {
        this.gatewayAccount = gatewayAccount;
    }

    public String getGatewayAccount() 
    {
        return gatewayAccount;
    }
    public void setGatewayPwd(String gatewayPwd) 
    {
        this.gatewayPwd = gatewayPwd;
    }

    public String getGatewayPwd() 
    {
        return gatewayPwd;
    }
    public void setGatewayIp(String gatewayIp) 
    {
        this.gatewayIp = gatewayIp;
    }

    public String getGatewayIp() 
    {
        return gatewayIp;
    }
    public void setGatewayPort(String gatewayPort) 
    {
        this.gatewayPort = gatewayPort;
    }

    public String getGatewayPort() 
    {
        return gatewayPort;
    }
    public void setGatewayStatus(String gatewayStatus) 
    {
        this.gatewayStatus = gatewayStatus;
    }

    public String getGatewayStatus() 
    {
        return gatewayStatus;
    }
    public void setHeartBeat(String heartBeat) 
    {
        this.heartBeat = heartBeat;
    }

    public String getHeartBeat() 
    {
        return heartBeat;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gatewayName", getGatewayName())
            .append("gatewayNo", getGatewayNo())
            .append("gatewayAccount", getGatewayAccount())
            .append("gatewayPwd", getGatewayPwd())
            .append("gatewayIp", getGatewayIp())
            .append("gatewayPort", getGatewayPort())
            .append("gatewayStatus", getGatewayStatus())
            .append("heartBeat", getHeartBeat())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("modifyTime", getModifyTime())
            .append("modifyBy", getModifyBy())
            .toString();
    }
}
